<?php
/***************************************************************************
 * 
 * Copyright (c) 2010 , Inc. All Rights Reserved
 * $Id$:URLDispatchFilter.php,2010/05/07 14:27:04 
 * 
 **************************************************************************/
 
 
 
/**
 * @file URLDispatchFilter.php
 * @author huqingping
 * @date 2010/05/07 14:27:04
 * @version 1.0 
 * @brief 
 *  
 **/

class URLDispatchFilter implements IFilter
{
	function execute(WebApp $app)
	{
		$url = strtolower($app->request->url); 
		require_once FR_ROOT.'core/DefaultURLDispatch.php'; 
		$dispatcher = new DefaultURLDispatch($app);
		Logger::debug('load url dispatcher:DefaultURLDispatch,'.$url);
		$dispatcher->dispatch($url);
		return true;
	}
}




/* vim: set ts=4 sw=4 sts=4 tw=100 noet: */
